﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SerializedData;

namespace KnowledgeBaseManager
{
    public partial class CreateCommand : Form
    {
        private DataCollection mDataCollection = DataCollection.Instance;       
        public CreateCommand()
        {
            InitializeComponent();
        }

      

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

       

        private void button1_Click(object sender, EventArgs e)
        {
            mDataCollection.addCommand(new SCommand(mDataCollection.getCommandInt(),textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text));
            ((MainWindow)this.Owner).refreshCommandList();
            this.Close();
        }
    }
}
